import { http } from '@/utils/http'
export interface IFooItem {
  id: string
  name: string
}

/** GET 请求 */
export const getFooAPI = (params = {}) => {
  return http.get<IFooItem>('/ai/api/v2/navigation/list', params)
}

/** POST 请求 */
export const postFooAPI = (name: string) => {
  return http.post<IFooItem>('/foo', { name }, { name })
}

export const getData = (params = {}) => {
  return http.get('/qywx/xthkai/onLogin', params)
}
